#ifndef DATEFIELD_H
#define DATEFIELD_H

#include "date_global.h"
#include "../databasefield.h"

class DATESHARED_EXPORT DateField : public DatabaseField
{
    Q_OBJECT
    Q_INTERFACES(DatabaseField)
public:
    DateField();

    QWidget *createDelegate(const QVariantMap &properties = QVariantMap());

    void setEditable(QWidget *delegate, bool editable);
    QVariant data(QWidget *delegate) const;
    void setData(QWidget *delegate, const QVariant &data);

public slots:
    void clear(QWidget *delegate);
};

#endif // DATEFIELD_H
